package com.jk.dmconsumer.service;

import com.jk.dmcommon.entity.CouponEntity;
import com.jk.dmcommon.entity.GoodsEntity;
import com.jk.dmcommon.entity.ShopEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 文件名称:GoodsOrderServcie
 *
 * @Description //TODO $
 * @Date $ $
 * 作者 郭英杰
 * Copyright (c) 2021, yuxy123@gmail.com All Rights Reserved.</pre>
 */
@Component
@FeignClient("dmpayprovider")
public interface GoodsOrderServcie {

    /*配送方式*/
    @RequestMapping("order/distribution")
    ShopEntity distribution(@RequestParam Integer leaveId);
    /*提交订单*/
    @RequestMapping("/order/orderQuery")
    ShopEntity payment(@RequestParam Integer leaveId ,@RequestParam Double totalPrices,@RequestParam String site,@RequestParam Integer goodsCount,@RequestParam Integer couponId);
    //查询优惠券
    @RequestMapping("/order/queryCoupon")
    CouponEntity queryCoupon(@RequestParam Integer couponId);
}
